﻿using System;
using System.Linq;
namespace HitchHikersGuideToTheGalaxy.Models
{
    public interface IVehicleRepository 
    {
        // Default Add, Delete and save actions
        void Add(Vehicle vehicle);
        void Delete(Vehicle vehicle);
        void Save();

        // Querys
        IQueryable<Vehicle> FindAllVehicles();
        IQueryable<Vehicle> FindMyVehicles(string ssn);
        Vehicle FindVehicle(string numberPlate);
        bool IsVehicleRegistered(string numberPlate);
        
    }
}
